//
//  WATFNavHomeView.swift
//  WiFiFaster
//
//  Created by one on 2023/12/28.
//

import UIKit

class WATFNavHomeView: WATFNavView {

    override func watf_initViews() {
       addSubview(watf_titleLabel)
       addSubview(watf_leftButton)
        watf_leftButton.snp.makeConstraints { make in
            make.bottom.equalToSuperview().offset(-10)
            make.right.equalToSuperview().offset(-20)
            make.size.equalTo(24)
        }
        watf_titleLabel.snp.makeConstraints { make in
            make.centerY.equalTo(watf_leftButton.snp.centerY)
            make.left.equalToSuperview().offset(20)
        }
        watf_titleLabel.font = UIFont.boldSystemFont(ofSize: 22)
        watf_titleLabel.text = "WiFi Faster"
        watf_leftButton.setImage(UIImage(named: "watf_nav_setting"), for: .normal)
    }
    override func watf_buttonClick(sender: UIButton) {
        watf_viewGetVController?.navigationController?.pushViewController(WATFSettingViewController(), animated: true)
    }
}
